<?php

namespace app\exception;

use share\exception\Errno;

/**
 * 已存在  历史遗留的错误码
 */
class ErrnoPlus extends Errno
{
    //成功
    const COMMON_SUCCESS =  0;
    //失败
    const COMMON_ERROR =  1001;
    //参数缺失
    const PARAM_ERROR =  1002;
    //邮箱格式错误
    const EMAIL_FORMAT =  1003;
    //手机号格式错误
    const PHONE_FORMAT =  1004;
    //用户已存在
    const USER_EXISTS =  1005;
    //验证码重复发送
    const VERIFICATION_CODE_EXISTS =  1006;
    //密码错误
    const PASSWORD_ERROR =  1007;
    //查无此用户
    const USER_NOT_EXISTS =  1008;
    //登录令牌失效
    const TOKEN_ERROR =  1009;
    //参数无效
    const INVALID_PARAM =  1010;
    //无效手机号
    const INVALID_PHONE =  1011;
    //分享已达上限
    const SHARE_TRANSFINITE =  1012;
    //验证码错误
    const VERIFICATION_CODE_ERROR =  1013;
    //验证码超时
    const VERIFICATION_CODE_OUTTIME =  1014;
    //无效二维码
    const INVALID_QRCODE =  1015;
    //不存在分享
    const SHARE_NOT_EXISTS =  1016;
    //已存在分享
    const SHARE_EXISTS =  1017;
    //不存在返回信息
    const NOT_BACK_DATA =  1018;
    //短信发送失败
    const SMS_SEND_ERROR =  1019;
    //短信发送超过日限额
    const SMS_DAY_SEND_ERROR =  1020;
    //手机号停机
    const USER_PHONE_STOP =  1021;
    //验证码发送异常
    const VERIFICATION_CODE_SEND_ERROR =  1022;
    //设备未绑定
    const DEVICE_NOT_BINDING =  1023;
    //服务器停服
    const SERVERMAINTENANCE =  1024;
    //当前区域仅支持邮箱注册
    const ONLYSUPPERTEMAIL =  1025;
    //当前设备已被其他APP上账号绑定
    const BINDINGOTHERAPP =  1026;
    //不存在好友关系
    const NOTEXISTSFRIEND =  1027;
    //已存在好友关系
    const EXISTSFRIEND =  1028;
    //订单不存在
    const ORDER_NOT_EXISTS =  1029;
    //订单失效
    const ORDER_HAS_EXPIRED =  1030;
    //订单已支付
    const ORDER_PAID =  1031;
    //订单已删除
    const ORDER_DELETED =  1032;
    //订单正在支付中
    const ORDER_IS_PAYING =  1033;
    //账号类型不同
    const DIFFERENT_ACCOUNT_TYPES =  1034;
    //原账号错误
    const ORIGINAL_ACCOUNT_ERROR =  1035;
    //认证错误
    const OAUTH_ERROR =  1036;
    //请求时间超过一分钟
    const REQUEST_OUT_TIME =  1037;
    //账号已注销
    const USER_ACCOUNT_LOGOUT =  1038;
    //分组数超过32个
    const GROUP_DEVICE_COUNT =  1039;
    //请求参数超出限制
    const PARAM_COUNT_MORE =  1040;
    //直连设备已存在
    const LOCAL_DEVICE_EXISTS =  1041;
    //直连设备不存在
    const LOCAL_DEVICE_FIEAL =  1042;
    //重复请求
    const LOCKED_IS_EXISTS =  1043;
    //账号已绑定微信
    const ACCOUNT_BINDING =  1045;
    //微信已绑定账号
    const OTHER_BINDING =  1046;
    //web端用户登录失效
    const WEB_LOGOUT =  1047;
    //web端用户信息发生变更
    const WEB_USER_IFNO_UPDATE =  1048;
    //用户修改密码原密码错误
    const OLD_PASSWORD_ERROR =  1049;
    //禁止绑定微信
    const FORBIDDEN_BINDING_WX =  1050;
    //当前第三方已被绑定
    const OTHER_IS_BINDING =  1051;
    //当前区域不支持短信发送
    const NOT_SUPPORT_SMS =  1052;
    //验证码发送达到限制
    const CODE_SEND_MAX =  1053;

    //验证码发送请求太频繁
    const SMS_CODE_SEND_LIMIT =  1054;
    //验证码请求不合法
    const CAPTCHA_INVALID_REQUEST =  1055;
    //验证码失效 或者错误
    const CAPTCHA_CODE_ERROR =  1056;
    //需要软授权
    const NEED_SOFT_ACCESS_AUTH =  1057;

    //云存产品不存在或者无权访问
    CONST OSS_PRODUCT_NOT_FOUND = 1101;
    //云存产品 状态异常
    CONST OSS_PRODUCT_STATE_INVALID  = 1102;
    // 订单已存在
    CONST OSS_ORDER_ALREADY_EXIST = 1110;
    // 订单 三方下单失败
    CONST OSS_ORDER_CREATE_NOT_ALLOW = 1111;
    // 订单支付状态不正确
    CONST OSS_ORDER_STATE_INVALID = 1113;
    // 订单不存在
    CONST OSS_ORDER_NOT_EXIST = 1114;
    // 订单支付发送错误
    CONST OSS_ORDER_PAY_ERROR = 1115;
    
    //开放应用
    CONST OPEN_APP_NOT_FOUND = 1201;
    CONST OPEN_APP_SIGN_ERROR = 1202;

}
